/*
 * DeckEditor.java
 *
 * Created on 2007�~1��23��, �U�� 8:11
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */
package org.sais.eswn.deck;

import java.io.*;

/**
 *
 * @author Romulus
 */
public class DeckEditor {

   public DeckEditor(Deck inputdeck) throws UnsupportedEncodingException {
      inputdeck.setDeckname("New Deck");
   }

}

class txtFilter extends javax.swing.filechooser.FileFilter {

   @Override
   public boolean accept(File f) {
      if (f.isDirectory()) {
         return true;
      }
      if (f.getName().length() > 4) {
         if (f.getName().substring(f.getName().length() - 4).toLowerCase().equals(".txt")) {
            return true;
         } else {
            return false;
         }
      } else {
         return false;
      }
   }

   @Override
   public String getDescription() {
      return "Eastern Silver Wing's Note Deck Files in Text Form (*.txt)";
   }

   txtFilter() {
   }
}
